package top.malaoshi.webmvc.factory;

import top.malaoshi.webmvc.exception.BeanCreationException;

@FunctionalInterface
public interface ObjectFactory<T> {

    /**
     * Return an instance (possibly shared or independent)
     * of the object managed by this factory.
     * @return the resulting instance
     */
    T getObject() throws BeanCreationException;

}